package Common;
import Models.Point2D;
import Models.StandardPoint2D;


public class Helper {
	public static int caculateXDistence(Point2D startPoint, Point2D endPoint) {
		return endPoint.getX() - startPoint.getX();
	}
	
	public static int caculateYDistence(Point2D startPoint, Point2D endPoint) {
		return endPoint.getY() - startPoint.getY();
	}
	
	public static Point2D calculateVector(Point2D from, Point2D to){
		return new StandardPoint2D(caculateXDistence(from, to), caculateYDistence(from,to));
	}

	
}
